.class public Lcom/kuguo/ad/MainActivity;
.super Landroid/app/Activity;


# instance fields
.field private a:Lcom/kuguo/ad/o;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method protected static a(Landroid/content/Context;Lcom/kuguo/ad/o;)V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p1, Lcom/kuguo/ad/o;->q:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p1, Lcom/kuguo/ad/o;->q:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    invoke-static {p0, v0, p1}, Lcom/kuguo/ad/MainActivity;->b(Landroid/content/Context;Ljava/lang/String;Lcom/kuguo/ad/o;)V

    :goto_0
    return-void

    :cond_1
    new-instance v0, Lcom/kuguo/a/d;

    iget-object v1, p1, Lcom/kuguo/ad/o;->q:Ljava/lang/String;

    const-string v2, "icon.png"

    iget v3, p1, Lcom/kuguo/ad/o;->h:I

    invoke-static {p0, v2, v3}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Ljava/lang/String;I)Ljava/io/File;

    move-result-object v2

    invoke-direct {v0, v1, v2, v4}, Lcom/kuguo/a/d;-><init>(Ljava/lang/String;Ljava/io/File;I)V

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/kuguo/a/d;->a(Ljava/lang/Object;)V

    new-instance v1, Lcom/kuguo/ad/d;

    invoke-direct {v1, p0, p1}, Lcom/kuguo/ad/d;-><init>(Landroid/content/Context;Lcom/kuguo/ad/o;)V

    invoke-static {p0, v0, v1}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Lcom/kuguo/a/d;Lcom/kuguo/a/c;)V

    goto :goto_0
.end method

.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Lcom/kuguo/ad/o;)V
    .locals 0

    invoke-static {p0, p1, p2}, Lcom/kuguo/ad/MainActivity;->b(Landroid/content/Context;Ljava/lang/String;Lcom/kuguo/ad/o;)V

    return-void
.end method

.method private a(Lcom/kuguo/ad/o;Z)V
    .locals 8

    const/4 v7, 0x2

    const/4 v5, 0x0

    if-nez p2, :cond_0

    iget-byte v0, p1, Lcom/kuguo/ad/o;->e:B

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    iget v0, p1, Lcom/kuguo/ad/o;->s:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    new-instance v0, Lcom/kuguo/ad/l;

    invoke-direct {v0, p0, p1, v5}, Lcom/kuguo/ad/l;-><init>(Landroid/app/Activity;Lcom/kuguo/ad/o;Z)V

    invoke-virtual {v0}, Lcom/kuguo/ad/l;->a()V

    :cond_1
    :goto_1
    return-void

    :pswitch_1
    invoke-static {p0, p1}, Lcom/kuguo/ad/q;->b(Landroid/content/Context;Lcom/kuguo/ad/o;)Landroid/content/Intent;

    move-result-object v1

    iget v0, p1, Lcom/kuguo/ad/o;->F:I

    invoke-static {v0}, Lcom/kuguo/ad/q;->a(I)I

    move-result v2

    sget v4, Lcom/kuguo/ad/a;->a:I

    move-object v0, p0

    move-object v3, p1

    move v6, v5

    invoke-static/range {v0 .. v6}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;Landroid/content/Intent;ILcom/kuguo/ad/o;IZZ)V

    goto :goto_0

    :cond_2
    iget-byte v0, p1, Lcom/kuguo/ad/o;->e:B

    if-ne v0, v7, :cond_1

    iget-object v0, p1, Lcom/kuguo/ad/o;->d:Ljava/lang/String;

    invoke-static {p0, v0}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Ljava/lang/String;)V

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p1, Lcom/kuguo/ad/o;->l:Ljava/lang/Integer;

    invoke-static {p0, p1}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Lcom/kuguo/ad/o;)Z

    invoke-virtual {p0}, Lcom/kuguo/ad/MainActivity;->finish()V

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method private static b(Landroid/content/Context;Ljava/lang/String;Lcom/kuguo/ad/o;)V
    .locals 0

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 7

    const/4 v6, 0x1

    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    const v0, 0x186ab

    if-ne p1, v0, :cond_0

    const/16 v0, 0x4b0

    if-ne p2, v0, :cond_0

    iget-object v0, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "\u60a8\u53ef\u7a0d\u5019\u901a\u8fc7\u684c\u9762\u4e0a ["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    iget-object v1, v1, Lcom/kuguo/ad/o;->g:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "] \u5feb\u6377\u65b9\u5f0f\u8fdb\u5165\u8f6f\u4ef6\u5217\u8868\u9875\u9762\uff01"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    invoke-static {p0, v0}, Lcom/kuguo/ad/MainActivity;->a(Landroid/content/Context;Lcom/kuguo/ad/o;)V

    const/4 v1, 0x0

    const/4 v2, -0x1

    iget-object v3, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    sget v4, Lcom/kuguo/ad/a;->a:I

    const/4 v5, 0x0

    move-object v0, p0

    invoke-static/range {v0 .. v6}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;Landroid/content/Intent;ILcom/kuguo/ad/o;IZZ)V

    :cond_0
    invoke-virtual {p0}, Lcom/kuguo/ad/MainActivity;->finish()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7

    const/4 v6, 0x0

    const/4 v5, 0x1

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/kuguo/a/f;->a(Landroid/content/Context;)Lcom/kuguo/a/f;

    invoke-virtual {p0, v5}, Lcom/kuguo/ad/MainActivity;->requestWindowFeature(I)Z

    invoke-virtual {p0}, Lcom/kuguo/ad/MainActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    new-instance v1, Lcom/kuguo/ad/o;

    invoke-direct {v1}, Lcom/kuguo/ad/o;-><init>()V

    iput-object v1, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    iget-object v1, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    const-string v2, "message"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/kuguo/ad/o;->a(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "shortcut"

    invoke-virtual {v0, v1, v6}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    iget-object v2, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    const-string v3, "sharedid"

    const/4 v4, -0x1

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, v2, Lcom/kuguo/ad/o;->f:I

    const-string v2, "applist"

    invoke-virtual {v0, v2, v6}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/kuguo/ad/l;

    iget-object v1, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    invoke-direct {v0, p0, v1, v5}, Lcom/kuguo/ad/l;-><init>(Landroid/app/Activity;Lcom/kuguo/ad/o;Z)V

    invoke-virtual {v0}, Lcom/kuguo/ad/l;->a()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, v0, Lcom/kuguo/ad/o;->l:Ljava/lang/Integer;

    iget-object v0, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    invoke-static {p0, v0}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Lcom/kuguo/ad/o;)Z

    iget-object v0, p0, Lcom/kuguo/ad/MainActivity;->a:Lcom/kuguo/ad/o;

    invoke-direct {p0, v0, v1}, Lcom/kuguo/ad/MainActivity;->a(Lcom/kuguo/ad/o;Z)V

    goto :goto_0

    :cond_1
    invoke-virtual {p0}, Lcom/kuguo/ad/MainActivity;->finish()V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    return-void
.end method
